package net.openl10n.mdf.immutable;

import java.util.Set;

import com.google.common.collect.ImmutableSet;

public class ImmutableStateException extends RuntimeException {

	private static final long serialVersionUID = 451998435388459541L;
	
	private final ImmutableSet<String> invalidFields;
	
	public ImmutableSet<String> getInvalidFields() {
		return invalidFields;
	}
	
	public ImmutableStateException(Set<String> invalidFields) {
		this.invalidFields = ImmutableSet.copyOf(invalidFields);
	}
	
	public ImmutableStateException(String ... invalidFields) {
		this.invalidFields = ImmutableSet.of(invalidFields);
	}
}
